<div class="boxer">
	<div class="box">
		<div class="catname">
			<h2 class="jiaose-edit-ico">修改人员信息</h2>
		</div>

		<div class="jiaose-from backfff">
		<form action="/user/edit/{{.User.Id}}" method="post">
			<table width="90%" border="0" cellspacing="0" cellpadding="0" class="margin_ten">
				<tr>
					<td width="150"><i>*</i>用户名</td>
					<td><input type="text" class="t" name="Account" value="{{.User.Account}}" disabled="disabled"/></td>
				</tr>
				<tr>
					<td>状态</td>
					<td>
						<select name="Status" id="status">
							{{range $index, $elem := .StatusList}}
								{{if eq $.User.Status $index}}
								<option value="{{$index}}" selected>{{$elem}}</option>	
								{{else}}
								<option value="{{$index}}">{{$elem}}</option>	
								{{end}}
							{{end}}
						</select>
					</td>
				</tr>
				<tr>
					<td width="150"><i>*</i>人员姓名</td>
					<td><input type="text" class="t" name="Name" value="{{.User.Name}}"/></td>
				</tr>
				<tr>
					<td width="150">角色名称</td>
					<td>
					<select name="Roles" id="jiaose">
					{{range .RoleList}}
						{{if eq $.User.Roles .Id}}
						<option value="{{.Id}}" selected>{{.Name}}</option>
						{{else}}
						<option value="{{.Id}}">{{.Name}}</option>
						{{end}}
					{{end}}
					</select>
					</td>
				</tr>

				<tr>
					<td width="150"><i>*</i>工号</td>
					<td><input type="text" class="t" name="JobNumber" value="{{.User.JobNumber}}"/></td>
				</tr>
				<tr>
					<td width="150"><i>*</i>职务</td>
					<td><input type="text" class="t" name="Duty" value="{{.User.Duty}}"/></td>
				</tr>
				<tr>
					<td colspan="2" class="">
						<sapn style="color:red">{{.flash.error}}</span>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="btn">
						<input type="submit" value="确定" />
						<button class="cancel">取消</button>
					</td>
				</tr>
			</table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
jQuery(function($){
	nku.droplist.config({'theme':'win7'}).play('status');
	nku.droplist.config({'theme':'win7'}).play('jiaose');
	$(".cancel").click(function(){
		$("form")[0].reset()
		return false;
	});
});
</script>
